/*
 * @Author: xuhong
 * @Date: 2020-04-29 17:42:57
 * @LastEditTime: 2020-05-07 10:04:08
 * @FilePath: \my-admin\src\route\modules\administrator.js
 */
import {Layout} from '../../layout/index'

export const administrator = [
    {
		path:'/import',
		name: '信息导入',
		component:Layout,
		meta: {
			title:'',
			icon: 'upload',
			isSecond: true
		},
		children:[
			{
				path:'/import/studentImport', 
				name: '学生信息',
				meta:{
					title:'学生信息', 
					icon:'iconuser'
				},
				component: () => import('../../pages/Administrator/studentImport'),
            },
            {
				path:'/import/teacherImport', 
				name: '老师信息',
				meta:{
					title:'老师信息', 
					icon:'iconuser',
				},
				component: () => import('../../pages/Administrator/teacherImport'),
			}
		]
    },{
		path:'/push',
		name: '消息推送',
		component:Layout,
		meta: {
			title:'',
			icon: 'chat-square',
			isSecond: true
		},
		children:[
			{
				path:'/push/teacherPush', 
				name: '老师消息',
				meta:{
					title:'老师消息', 
					icon:'iconuser',
				},
				component: () => import('../../pages/Administrator/teacherPush'),
            },
            {
				path:'/push/studentPush', 
				name: '学生消息',
				meta:{
					title:'学生消息', 
					icon:'iconuser',
				},
				component: () => import('../../pages/Administrator/studentPush'),
			}
		]
	},{
		path:'/arrange',
		name: '',
		component: Layout,
		meta: {
			title:'',
			icon: 'alarm-clock',
			isSecond: false
		},
		children:[
			{
				path:'/',
				name: '教学安排',
				component: () => import('../../pages/Administrator/arrange'),
				meta: {
					title:'教学安排',
					icon: 'iconuser',
				}
			}
		]
	},{
        name:"",
		path:"/exam",
		component: Layout,
        meta: {
			title:'',
			icon: 'postcard',
			isSecond: false
		},
        children:[
			{
				name:"考试安排",
				path:"/exam",
				component: () => import('../../pages/Administrator/exam'),
				meta: {
					title:'考试安排',
					icon: 'iconuser',
				},
			}
		]
    },{
        name: '',
		component: Layout,
		path:"/user",
        meta: {
			title:'',
			icon: 'refrigerator',
			isSecond: false
		},
        children:[
			{
				name:"账户管理",
				path:"/user",
				component: () => import('../../pages/Administrator/user'),
				meta: {
					title:'账户管理',
					icon: 'iconuser',
				}
			}
		]
    },{
        name: '',
		component: Layout,
		path:"/news",
        meta: {
			title:'',
			icon: 'mic',
			isSecond: false
		},
        children:[
			{
				name:"新闻管理",
				path:"/news",
				component: () => import('../../pages/Administrator/news'),
				meta: {
					title:'新闻管理',
					icon: 'iconuser',
				},
			}
		]
    },{
        name: '',
		component: Layout,
		path:"/maintain",
        meta: {
			title:'',
			icon: 'set-up',
			isSecond: false
		},
        children:[
			{
				name:"系统维护",
				path:"/maintain",
				component: () => import('../../pages/Administrator/maintain'),
				meta: {
					title:'系统维护',
					icon: 'iconuser',
				}
			}
		]
    }
 ]

export const otherAdmin = [
	 {
		name: '',
		component: () => import('../../pages/Administrator/articleCompile'),
		path:"/articleCompile",
        meta: {
		},
	 },
	 {
		 path:'*',
		 redirect:'/404'
	 }
 ]